SQL:
SELECT * FROM SYSIBM.SYSCOLUMNS WHERE TBCREATOR NOT LIKE ‘SYS%’ AND TBNAME = ‘TABLENAME‘ AND KEYSEQ > 0 ORDER BY KEYSEQ ASC;
Use in jdbc:
resultSet = statement.executeQuery(sql); while(resultSet.next()) { System.out.println(resultSet.getString("NAME")); }
FREE ebook – Getting started with Adobe Flex (From IBM DB2) Flex快速入门 <->
// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.